<?xml version="1.0" encoding="utf-8"?>
<openerp>
	<data>
		
		<report 
	       id="action_belber_sale_order_print"
	       model="sale.order"
	       string="Sale Order Print"
	       report_type="qweb-pdf"
	       name="belber_module.belber_sale_order"
	       file="belber_module.belber_sale_order"
	    />
		
		<record id="action_belber_sale_order_print" model="ir.actions.report.xml">
	        <field name="paperformat_id" ref="belber_module.paperformat_belber_so"/>
	    </record>
		
		<record id="view_order_form_belber" model="ir.ui.view">
			<field name="name">sale.order.form.belber</field>
			<field name="model">sale.order</field>
			<field name="inherit_id" ref="applico_v8.view_order_form_applico"/>
			<field name="arch" type="xml">
				<button name="print_quotation" position="replace">
					<button name="print_quotation" invisible="1"/>
					<button name="print_sales_order" string="Print" type="object"/>
				</button>
				<xpath expr="//notebook/page[@string='Order Lines']/field[@name='order_line']/tree/field[@name='name']" position="replace">
					<field name="name" invisible="1"/>
					<field name="description"/>
				</xpath>
				<xpath expr="//notebook/page[@string='Other Setup']" position="after">
					<page string="Belber Setup">
						<group string="Customer Information">  
							<field name="season" widget="selection"/>
							<field name="cust_po_no"/>
							<field name="order_po_received_date"/>
						</group>
						<group string="Payment Condition and Delivery">
							<field name="tax_exempt"/>
							<field name="delivery_date"/>
							<field name="cancel_date"/>
							<field name="shipping_method" widget="selection"/>
						</group>
					</page>
				</xpath>
			</field>
		</record>
		
		<!-- Adding Season -->
		<record id="view_belber_season_form" model="ir.ui.view">
            <field name="name">belber.season.form</field>
            <field name="model">season</field>
            <field name="arch" type="xml">
                <form string="Season">
				<sheet>
					<group>
                       <field name="name"/>>
					</group>
				</sheet>
                </form>
            </field>
        </record>
 
         <record id="belber_season_tree" model="ir.ui.view">
            <field name="name">belber.season.tree</field>
            <field name="model">season</field>
            <field name="arch" type="xml">
                <tree string="Season">
                    <field name="name"/>
                </tree>
            </field>
        </record>
		
		<record id="belber_season_search" model="ir.ui.view">
            <field name="name">belber.season.search</field>
            <field name="model">season</field>
            <field name="arch" type="xml">
                <search string="Search Season">
                    <field name="name"/>
                </search>
            </field>
        </record>
		
		<record id="belber_season_action" model="ir.actions.act_window">
            <field name="name">Season</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">season</field>
            <field name="view_mode">tree,form</field>
            <field name="search_view_id" ref="belber_season_search"/>
            <field name="help" type="html">
              <p class="oe_view_nocontent_create">
                Click to create a new season entries.
              </p>
            </field>
        </record>
		
		<menuitem action="belber_season_action" 
			id="menu_belber_season" 
			parent="base.menu_base_config"
			sequence="80"/>
		
		<!-- Adding Shipping Method -->
		<record id="view_belber_shipping_method_form" model="ir.ui.view">
            <field name="name">belber.shipping.method.form</field>
            <field name="model">shipping.method</field>
            <field name="arch" type="xml">
                <form string="Shipping Method">
				<sheet>
					<group>
                       <field name="name"/>>
					</group>
				</sheet>
                </form>
            </field>
        </record>
 
         <record id="belber_shipping_method_tree" model="ir.ui.view">
            <field name="name">belber.shipping.method.tree</field>
            <field name="model">shipping.method</field>
            <field name="arch" type="xml">
                <tree string="Shipping Method">
                    <field name="name"/>
                </tree>
            </field>
        </record>
		
		<record id="belber_shipping_method_search" model="ir.ui.view">
            <field name="name">belber.shipping.method.search</field>
            <field name="model">shipping.method</field>
            <field name="arch" type="xml">
                <search string="Search Shipping Method">
                    <field name="name"/>
                </search>
            </field>
        </record>
		
		<record id="belber_shipping_method_action" model="ir.actions.act_window">
            <field name="name">Shipping Method</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">shipping.method</field>
            <field name="view_mode">tree,form</field>
            <field name="search_view_id" ref="belber_shipping_method_search"/>
            <field name="help" type="html">
              <p class="oe_view_nocontent_create">
                Click to create a new shipping method entries.
              </p>
            </field>
        </record>
		
		<menuitem action="belber_shipping_method_action" 
			id="menu_belber_shipping_method" 
			parent="base.menu_base_config"
			sequence="81"/>

	</data>
</openerp>
